Ext.define('wmf.model.billing.billing', {
    extend: 'Ext.data.Model',
    fields: [
        { name: 'productId', type: 'string' },
        { name: 'productName', type: 'string' },
        { name: 'ecId', type: 'string' },
        { name: 'ecName', type: 'string' },
        { name: 'businessType', type: 'string' },
        { name: 'billingOnSuccess', type: 'string' },
        { name: 'businessType1', type: 'string' ,convert: function(v, record){
			var value = record.data.businessType;
			if(value == "1"){
				return "彩信";
			}else if(value == "2"){
				return "短信";
			}else{
				return value;
			}
        }},
        { name: 'serviceType', type: 'string' },
        { name: 'serviceType1', type: 'string' ,convert: function(v, record){
			var value = record.data.serviceType;
			if(value == "1"){
				return "三网";
			}else if(value == "2"){
				return "移动";
			}else if(value == "3"){
				return "联通";
			}else if(value == "4"){
				return "电信";
			}else if(value == "5"){
				return "联通、电信";
			}else if(value == "6"){
				return "移动、联通";
			}else if(value == "7"){
				return "移动、电信";
			}else{
				return value;
			}
        }},
        { name: 'billingType', type: 'string' },
        { name: 'billingType1', type: 'string' ,convert: function(v, record){
			var value = record.data.billingType;
			if(value == "1"){
				return "包月";
			}else if(value == "2"){
				return "包条";
			}else if(value == "3"){
				return "包年";
			}else{
				return value;
			}
        }},
        { name: 'cmccPrice', type: 'string' },
        { name: 'unicomPrice', type: 'string' },
        { name: 'telcomPrice', type: 'string' },
        { name: 'latestOperator', type: 'string' },
        { name: 'latestOperateTime1', type: 'string' ,convert: function(v, record){
			return wmf.data.mydateformat(record.data.latestOperateTime);
        }},
        { name: 'latestOperateTime', type: 'string' }
    ]
});